<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>角色添加</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="icon" href="images/logome.ico">
    <link rel="stylesheet" href="lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="css/public.css" media="all">
     <link rel="stylesheet" href="js/lay-module/step-lay/step.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
		 <form th:action="@{/doAddRole}"  th:method="post">
		 							 <div class="layui-form-item">
                                        <label class="layui-form-label">ID:</label>
                                        <div class="layui-input-block">
                                            <input type="text" placeholder="请填写入一个数字" class="layui-input" name="id"
                                             onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" required />
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">角色 :</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="roleName" lay-verify="required" 
                                            lay-reqtext="角色名字不能为空"  placeholder="请填写入角色名称" class="layui-input" required />

                                        </div>
                                    </div>
                                    <div class="layui-form-item">
					                    <label class="layui-form-label">日期</label>
					                    <div class="layui-input-block">
					                        <input type="text" name="createTime"  id="date" lay-verify="date"
					                         placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" required>
					                    </div>
					                </div>
					    <div class="layui-form-item">
					        <div class="layui-input-block">
					        	<a th:href="@{/roleList}"><button type="button" class="layui-btn layui-btn-primary pre">上一步</button></a>
					            <button class="layui-btn layui-btn-normal"  lay-filter="saveBtn" type="submit">确认保存</button>
					        </div>
					    </div>
					    <p id="msg" th:text="${msg}" th:if="${! #strings.isEmpty(msg)}" 
                                style="text-align:center;color:red;font-size:18px;margin-top:30px;margin-bottom:20px;"></p>
        </form>
</div> 
<script src="lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="js/date.js" charset="utf-8"></script>
</body>
</html>